<?php $this->load->view('includes/project_view_header'); ?>
<script type="text/javascript">
	var CI = {
    	baseUrl: "<?= base_url(); ?>"
    };
	$(document).ready(function(){
		initTasksList();
		initTaskModal();
		autocompleteAssignedTo();
		autocompleteSprints();
		$("#tabs").tabs({ selected: 1 });
	});
</script>

	<div id="search_box" class="container_12">
		<div id="filters_left_column" class="grid_6 alpha">
			<p>
				<label class="grid_2 alpha" for="priority_filter">Priority</label>
				<select name="priority_filter" id="priority_filter"></select>
			</p>
			<p>
				<label class="grid_2 alpha" for="assigned_to_filter">Assigned To</label>
				<input type="text"  name="assigned_to_filter" id="assigned_to_filter"/>
			</p>
			<p>
				<label class="grid_2 alpha" for="start_date_filter">Start Date</label>
				<input type="text"  name="start_date_filter" id="start_date_filter"/>
			</p>
			<p>
				<label class="grid_2 alpha" for="search_filter">Search</label>
				<input type="text"  name="search_filter" id="search_filter"/>			
			</p>
		</div>
		<div id="filters_right_column" class="grid_6 alpha">
			<p>
				<label class="grid_2 alpha" for="status_filter">Status</label>
				<select name="status_filter" id="status_filter"></select>
			</p>
			<p>
				<label class="grid_2 alpha" for="sprint_filter">Sprint</label>
				<input type="text"  name="sprint_filter" id="sprint_filter"/>
			</p>
			<p>
				<label class="grid_2 alpha" for="end_date_filter">End Date</label>
				<input type="text"  name="end_date_filter" id="end_date_filter"/>		
			</p>
			<p>
				<input type="button" name="filter" id="filter" value="Filter"/>
			</p>
		</div>		
		<div class="clear"></div>
	</div>
	<div class="clear"></div>
	<div class=" container_12">
		<table id="tasks_list"></table> 
		<div id="tasks_list_pager"></div>
		<?php $this->load->view('task_upsert_view'); ?>
	</div>
<?php $this->load->view('includes/footer'); ?>